// 类型中可以模板字符串

type T = "Dog" | "Cat";

type UserAnimal = `${T}_id`;

function getAnimalId(animal: UserAnimal): string {
  return animal;
}

const dog_id = getAnimalId("Dog_id");
const cat_id = getAnimalId("Cat_id");

console.log(dog_id);
console.log(cat_id);

